package homework.api01.apitest02;

public class TrimDemo {
    public static void main(String[] args) {
        String str = "    Hello Word!  ";
        String trim = str.trim();
        System.out.println(trim);//Hello Word!
        //字符串是不变对象,内容不能被改变
        System.out.println(str);//    Hello Word!
    }
}
